package com.usvisatrack.core.utils;

import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.commons.collections.ListUtils;
import org.apache.http.client.utils.URIUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.apache.commons.math3.util.Precision;
import org.apache.http.client.ClientProtocolException;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.Namespace;
import org.jdom2.filter.Filters;
import org.jdom2.input.SAXBuilder;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;
import org.jdom2.xpath.XPathExpression;
import org.jdom2.xpath.XPathFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.common.collect.ImmutableSet;
import com.google.gson.Gson;


/**
 * BcoDepot Amazon Utils class
 * 
 * @author YuCheng Hu
 *
 */
public final class AmazonUtils {

	private static final Logger logger = LoggerFactory.getLogger(AmazonUtils.class);

	// private static String APIDATA_CDN_FOLDER = "/home/cdn/com-bcodepot-www/data/apidata";

	private static String AWS_ACCESS_KEY_ID = "";
	private static String AWS_SECRET_KEY = "";
	private static String ENDPOINT = "ecs.amazonaws.com";
	private static String AWS_NAME = "AmazonMerchandiseData";

	private static String AMAZON_NAME = "Amazon";

	public final static String CACHE_DATA_FOLDER = "/home/bcodepot/cache";

	public final static String API_DATA_FOLDER = "/home/bcodepot/api";

	public final static String CDN_DATA_FOLDER = "/home/cdn/com-bcodepot-www/data/item";

	public final static String ITEM_ATTACHMENT_CACHE_FOLDER = "/home/bcodepot/cache/" + AMAZON_NAME;

	public final static String ITEM_ATTACHMENT_CDN_FOLDER = "/home/cdn/com-bcodepot-www/data/item";

	public final static Date C_DATE = new Date();

	private static final Namespace AMAZON_NAMESPACE = Namespace.getNamespace("Amazon",
			"http://webservices.amazon.com/AWSECommerceService/2011-08-01");



}